Simplify Punycoding logic
Merge pull request #40 from mathiasbynens/fix-punycode

Simplify Punycoding logic