Don't strip - use a null character replacement

Ruby Marshal will append null character IFF the hash dump ends with }. ENV doesn't like null characters, so we need to save it otherwise