Decode/encode SQL mode and channel splits
Change XML schema to match