Coerce set value into string. Fixes #881.