Fix query string encoding

Pretty useful lib btw! Thanks!