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