TAJO-382: Implement encode/decode functions. (Seungun Choe via jihoon)