Moves string conversion to a new StringUtil class.