SI-6194, repl crash.

Always a bad idea to use replaceAll on unknown strings,
as we saw here when windows classpaths arrived containing
escape-requiring backslashes.
Merge pull request #1822 from paulp/issue/6194

SI-6194, repl crash.