Old software: 2koi
Script which auto-detect one of russian encoding (DOS/KOI/WIN/MAC/ISO) of given text and translate it to KOI.
Auto-detection based on special tables. I take these tables from free C program, translate it to Perl and optimize speed aprox. 60 times (now speed is like speed of original C program).