config encoding