Improvements in the translation table building script, take 2.
Additional mods to previous commit (still discussing UTF8 enforcing)