code: public function add($encoding = 'UTF-8')
      {
          $str = file_get_contents($this->uri);
          return file_put_contents($this->uri, $this->getBom($encoding) . $str);
      }
docs: Add a BOM at the beginning of the file.
  @param string $encoding
  @return int