Folding text breaks cyrillic input

When typing in cyrillic folding text misinterprets some of the keystrokes as their US keyboard layout latin characters and outputs that, instead of the character from my Bulgarian keyboard layout.