Simplify Punycoding logic