A very simple serialization/deserialization framework