Escape a string to be used as a shell argument