Ensure domains that contain spaces are treated as invalid