[WIP] Patched QueryString encoding, since the built in version from  doesn't work properly.