add Encode/DecodeString function..etc