add experimental locale / unicode fix for Teigha
cleanup