Values of decision rules are in .dxi files encoded using character strings, where each
individual character encodes some function value. The encoding is zero-based, so that
"0" represents the lowest ordinal number on the corresponding discrete scale.
rule_value(char) converts a single character to the corresponding ordinal value.