Reversible serialization