URL encode query params before sending them to the measurement API