PDF: normalize passwords for better handling of Unicode characters
add BOM to trans_gen.py for non-guessing editors
optimize rtl lang handling; free missing translations at exit
optimize rtl lang handling; free missing translations at exit
follow-up to previous accidental commit
make the translations work again