Add the escapeShellArg function to child_process

When we call external programs via `exec()`, we should escape parameters that may contain special characters.

Let's implement a function that escapes shell arguments.

Supersedes https://github.com/joyent/node/pull/6308