If the files are encoded with non-UTF8 character encoding, the diff view will have invalid character due to git diff using UTF8 encoding.
Need to convert non-UTF8 files to UTF8 before generating the diff view.
*NOTE: This fix was enabled as an opt-in feature. A repository admin must enable "Transcode diff" for non-UT8 files to work. See this comment for details.*