TOC only with russian letters works incorrectly when render Rmd to html

When I compile big (~2.8k lines) .Rmd document in HTML I discover that TOC don't work correctly. It sends me to same header from many lines of TOC.

I notice, that if add some english text to header - TOC begin works correct.

Here are two sample .Rmd files:

TOC bad - only russian letters in headers; TOC work incorrectly (send me to wrong header)
TOC good - headers with some english text; TOC work correctly

May be problem in encoding? If yes, then how to fix it?