Sanitize log records before passing them to MC's GUI log handler, fixes #443.Signed-off-by: Ross Allan <[email protected]> (commit: 8660ffc)