Which of the four instances of utf8 in your sample are you referring to? And could you show some example code that reproduces the problem? Short, Self-Contained, Correct Example
Update: Thank you for adding some sample code, but see How do I change/delete my post? - please mark your edits as such. Also, did you mean один or один? On PerlMonks, if you meant the latter, unfortunately it's required to use <pre> instead of <code> tags, which means that HTML/PM special characters like <, >, &, [, and ] need to be escaped too (respectively, <, >, &, [, and ]).