change query string to uri string