Checks for valid hostname labels (i.e. subdomains)