true encoding/decoding for config attribute