add constructQuery method to url util