Encode multiple query parameters correctly.