Fixes problem with LookupError: unknown encoding: UTF-8withBOM

Uses the encoding helper for cleaning up encodings in the diff.

Had problems with *LookupError: unknown encoding: UTF-8withBOM* at line 150 in *git_gutter_handler.py*. This commit fixes it, and I don't see any immediate problems with using it at least.