Added cp1251to866 & cp866to1251 functions

Adapted project to these functions

Moved to Eclipse project
Bug is fixed