Make sure the host names are properly escaped