[frontend] Replace non UTF-8 chars only when neccessary
There are non UTF-8 encoded chars in source diffs that we can still represent in the ui (and can be handled by ruby / rails). This will relax the source diff encoding. Fixes #4841
Please register or sign in to comment