remove encoding of undomanager in model