Fixed a bug that fails to parse hostname starting with numbers.

According to RFC 1123, hostnames that begin with numbers are valid.