python: Fix packing of unicode chars