keep encoding state after calling toString or serialization