Improve host-name regx and enable host-name tests. Host-name regex still does match a few invalid strings, having lengths of 255, 256, and 257 characters.