This changes the implementation to match the text from UTS#46 (4.2 ToASCII, step 4.1):
The length of the domain name, excluding the root label and its dot, is from 1 to 253.