protected function inputConv(string $str): string
    {
        if ($str === '') {
            return '';
        }

        // we don't want the header so first 4 bytes are stripped
        return \substr(\iconv($this->encoding, 'UTF-32', $str), 4);
    }