Issue #2314513 by joelpittet, larowlan: Add test coverage for DiffFormatter not double escaping