Escape "\" and "$"

To send "$" and "\\" to a repl session. (E.g. R uses "$" as an indexer.)