adjust encoding/decoding to ASN1CharacterString
update for asn1-type 0.2