Encode a value into a string which can be stored in a config file.
The type of the value is used to decide how to encode it.
Definition at line 305 of file fhs.py.