uri encode json params
Merge pull request #5 from cavis/master

URL-encode json parameters