We'll respond shortly.
When storing to a string via marshal_dump, it can be handy to encode to Base 64 first. The same string — once marshal-loaded and Base 64 decoded — should be free of any encoding and/or escaping errors. Is there anything Base 64 can’t do?*
* the answer I am looking for here is “win a knife fight against tigers.”