Handles varying types of bib file encodings