Problems with unicode solved, tested on chinese and gothic alphabets