HTTP POST must be encoded and windows.location is encoded

When using JavaScript window.location in your code, be aware, that window.location is encoded using JavaScript escape function. It is not always obvious because characters, that get encoded / decoded using escape() / unescape() is rare in urls. Use the following syntax to get human readable url:

URL: url/
unescape(window.location): url/

Also, HTTP POST must be percent encoded, using ‘+’ instead of ‘%20’:
Percent encoding