better handling for buggy xml files. implemented latinToAscii from
tools.py