public static function transliterateFilename($originalFilename)
    {
        $transliterator = \Transliterator::create('NFD; [:Nonspacing Mark:] Remove; NFC');
        $string = $transliterator->transliterate($originalFilename);

        return trim(
            preg_replace(
                '/[^\x20-\x7E]/',
                '_',
                $string
            ),
            '_'
        );
    }
public static function transliterateFilename($originalFilename)
    {
        $transliterator = \Transliterator::create('NFD; [:Nonspacing Mark:] Remove; NFC');
        $string = $transliterator->transliterate($originalFilename);

        return trim(
            preg_replace(
                '/[^\x20-\x7E]/',
                '_',
                $string
            ),
            '_'
        );
    }
@param string $originalFilename

@return string