sanitize_url: Convert unicode domain names to ascii.

Previously, unicode domain names were only checked for validity, and the
coversion was dropped. This can cause problems down the line where we expect
URL's to be ascii.