Code for handling unicode/punycode name conversions

Addressing #120
and here.