How to send \n(newline chara) in XMPP/Jabbar output filter?

Wanted to split message with multiple line. I am inserting \n(also tried with \r, \r\n nothing helped) , but it is taken as normal string. Where can I get info on how to send special character as it is?

RequestId: 222222 \r Total: 1
2:26 PM
RequestId: 222222 \r\n Total: 4
2:29

Escape sequences in Logstash strings don't work very well. I think you'll have to use a ruby filter to build the string. You can e.g. use 10.chr to obtain a newline character without using a backslash.