I find that sometimes files included in Python projects, for example Fortran files, have corrupted characters that are incorrect UTF-8 characters.
Maybe it’s a case of bad OCR that also plagues LaTeX/BibTeX copy/paste references from journal websites.
Thus, this method will also apply to BibTeX files.