RTFInput: Fix bug #1163572

Fix finishing the work. User input is used as default for encoding ie if
nothing correct is detected.
A few minor modifs in bibtex and an assumed typo in widget