domainToASCII
Returns the Punycode ASCII serialization of the domain. If domain is an invalid domain, the empty string is returned.
domainToUnicode
Returns the Unicode serialization of the domain. If domain is an invalid domain, the empty string is returned.
It performs the inverse operation to domainToASCII()
.