fixing the query parameters encoding