Change escape logic in logEvent
- substr non-escaped source
- send mail with non-escaped source