Fix for encode parameters in query
Merge pull request #1 from fabienp/master

Fix for encode parameters in query