based on https://github.com/xxorax/node-shell-escape/blob/master/shell-escape.js
Escapes single arguments or an Array