class Encode: sub classes for STR, HEX added.