You might want to check that the passed URL doesn't already have a query string here. Also, might be overkill, but is it worth using [the built-in `url` API](http://nodejs.org/api/url.html)?