Correcting encoding/decoding format