Use QueryString.stringify

I realized that I could just use Node.js's QueryString.stringify to get
the full benefit of handling arrays. I also changed the name from format
to expand.