Replace newlines with <br/>. That makes stack traces more readable.