Unicode to Windows1251
From http://stackoverflow.com/questions/7389651/javascript-character-conversion