convert hash into query string to be passed into get request