Allow hyphens anywhere in URL hostnames
Allow hyphens anywhere in URL hostnames

This change brings galimatias’s ToASCII and ToUnicode behavior into
conformance with the current URL spec, which requires the ToASCII and
ToUnicode algorithms to be performed with the CheckHyphens flag set to
false — which means that hyphens are allowed anywhere in the URL
hostname, including leading and trailing hyphens.

Fixes https://github.com/validator/validator/issues/720 Thanks @KatieMFritz

validator/validator,takenspc/validator,validator/validator,takenspc/validator,takenspc/validator,takenspc/validator,takenspc/validator,validator/validator,validator/validator,validator/validator