fixed broken querystring construction
Merge pull request #313 from PicnicBasket/master

fixed broken querystring construction