You'll want to `encodeURIComponent` the keys and vals.