private function decodeCharset($input) { if (in_array($this->getCharset(), ['utf-8', 'us-ascii'])) { return $input; } $charset = new Charset(); return $charset->decodeCharset($input, $this->getCharset()); }