Convert the query hash to query string manually