fixes #5834 - Hosts: . in the name is invalid - user is told this but the UI adds one anyway