protected function encode() { if ($this->useIconv) { $this->fileContent = iconv($this->encoding, 'UTF-8', $this->fileContent); } else { $this->fileContent = mb_convert_encoding($this->fileContent, 'UTF-8', $this->encoding); } }