Encode IDN URLs, closes #106