ticket #6 fixed unicode chars

Fixed unicode chars handling.

Merged test by @suvit.