Fixed a bug where the URL params were not percent encoded