Fixed JSON encoding for BibRecords