When you don't write unit tests, you don't catch near obvious bugs in your code.

Escaping was wrong, and Java was turning what was meant to be a literal \\n to a \<line feed>