Fix bad lookups that occur when the hostname has "www" in it.