private function restoreEncoding() { if ($this->encoding) { mb_internal_encoding($this->encoding); } }