now it works with unicode characters

Because my mediawiki has only Armenian language articles, and robots don't usually understand Armenian, it was necessary for me to create a captcha with the highest security level.
I've got rid from the spam bots by generating Armenian captchas. However, it required some changes to the code.
Please review them.