Use CGI.escape rather than URI.escape
Merge pull request #3 from markalanevans/fix-encoding

Use CGI.escape rather than URI.escape