Isolate memento encoding