XSETTINGS binary format encoder/decoder