Updated Punycode funcs

* docstrings
* changes to handling invalid punycode names
* updated tests