Add StringSerializer class. Update StringUtils and type conversions code.
Refactor UserState object to use the new StringSerializer.