fixed a bug with query strings containing objects in Node.js version