new urlencode & buildQuery methods