Rewrite EditConfigValue() not to be a catastrophically bad pile of crap.