encodeURIComponent the query