I18n modifications

I added the check for the existence of the method idn_to_ascii