url encode queries.