- handle invalid UTF-8 in file diff (bsc#907679)

The current code does not hide anything, encode does insert a replace character.