use rawurlencode instead of urlencode to make sure spaces are encoded correctly in query vars

https://github.com/GigaOM/legacy-pro/issues/4370