Fix export to bibtext/refworks functionality
Merged fix-export branch into search-char-fix