reversible conversion of all Macaulay2 objects to strings