Handle Latin-1 encoded text in diffs

This is useful for avoiding crashing on "cdiff -l" (on Python 3) in https://github.com/myint/cppclean.