Quick fix for Issue#1, pending a permanent fix.

Added a quick fix for encoding paths in the query parameters.

A more solid solution to be provided later.