Allow hostnames to contain and start with digits

This is allowed by RFC 1123.