Data encoding/decoding process