protected function utf8WithoutBom($string)
    {
        if ($string === null) {
            return null;
        }

        $bom = pack('H*', 'EFBBBF');

        $string = str_replace($bom, '', $string);

        return $string;
    }