Escape HTML characters in log.