Handle unparseable hosts in hostname validator