fix binary message packing to support Cyrillic