Allow plain strings for hosts.