Code for handling unicode/punycode name conversions v2

Opening new PR for clean commenting
Check my new test please.