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.