Resolved issue with cp866 in Windows