Code for handling unicode/punycode name conversions

Addressing #120
Let me check feel free to close this PR, I'll work on things for day or two and open new one.