to properly build Cyrillic filenames support. Submitted by: Victor Sudakov <sudakov@sibptus.tomsk.ru>