Remove trailing commas from bibtex records