Fix #240.  Treat '\r' in a replacement string as a newline (consistent
with Vim behavior).