Escape special characters when preparing arguments

Double quotes `"` and backslashes `\` need to be escaped when sending
string arguments.

Fixes #83
Merge pull request #84 from timheap/master

Escape special characters when preparing arguments