improved bibtex key generation