Convert host to IDNA ASCII form

`checkdnsrr()` returns `false` if the host contains unusual characters.
Converting it using `idn_to_ascii()` prevents that.