simple object to string serialization/desesialization