remove public function convertEncoding