Use conditional escaping to handle '&' used to join the query string.