Serialize P6str correctly