Avoid corrupting message payload while logging.

Seems wrong to modify the payload in one code path only.
-Mark