diffutils.convert_to_utf8() will try UTF-8 and ISO-8859-15 for converting files, which means that if people have other encodings, they'll get errors or garbage output. To fix this, we probably need to add an optional field to the Repository model that has the default encoding for files. People who have a mix of ISO-8859-15, UTF-8 and SJIS all in one repository will probably never have everything working perfect, no matter what we do, so this is probably good enough.