fixed issue with malformed UTF-8 string;
Some enhancements in putText

- added utf-8 drawing test
- simplified cyrillic handling block