Since Dojo 1.7,
dojo.objectToQuery is exposed via the
objectToQuery method of the
dojo/io-query module. An alias is kept in
dojo/_base/xhr for backward-compatibility.
Usage is simple and straightforward, you pass the object you wish converted to a query string and the function will return the query string.