Fix opening utf8 urls on OSX

- Escape hostnames with punycode
- Use proper encoding when launching open
Detect utf8 urls

They might not be valid, but like many things they are still used
Correctly open URLs with non-ASCII characters on Windows.
merge from hexchat master and remove file that should have been deleted ages ago