Should encode the query sent to the backend.