Escape and stringify an array of arguments to be executed on the shell