fixes #8 (newlines in all replacements)