Url encode query parameters.