added Cyrillic;

added Cyrillic;

replace binary format with hex;

move duplicated code to inline function;