Fixes #1228905 [Calibre does not create a valid .bib file](https://bugs.launchpad.net/calibre/+bug/1228905). Either keeps matching braces, or strips unmatching braces. Uses should use \leftbrace or \rightbrace instead.
Merge branch 'master' of github.com:alexbiddle/calibre