encode: more support for SLHA-2