correctly escape diffs in HTML mails