Improved handling of multiline log messages

Previous handling would push multline msgs through json_encode. Instead,
munge the string to align it with vertical bar output. This makes stacktraces
etc easier to deal with.
add s//s modifier for proper newline handling
Merge pull request #3 from mattp-/master

Improved handling of multiline log messages