escape uri when querying