urlencode query values in CreateQueryFromItems method