Bug 10851 - [FR] fix behaviour in 8-bit locales with cyrillic filenames

Summary: [FR] fix behaviour in 8-bit locales with cyrillic filenames