Here is simple code
A proper (logical) alternative for unicode strings;
Use the PHP: mb_substr - Manual