ensure valueToText returns a String always