public static function ascii($str, $srcEncoding = 'UTF-8')
    {
        // collapse soft hyphens.
        $str = str_replace(html_entity_decode('&shy;', null, 'UTF-8'), '', $str);
        return transliterator_transliterate('Any-Latin;Latin-ASCII', $str);
    }