Improved handling of curly brackets in BibTex.