codecs: for cstring and for local are different