ensure encoding for ST3 compability