tramp-shell-quote-argument

tramp-shell-quote-argument is an autoloaded compiled Lisp function in `tramp.el'.

(tramp-shell-quote-argument S)

Similar to `shell-quote-argument', but groks newlines.
Only works for Bourne-like shells.