Revert "fix serialisation bug I put in for S3 records"

This reverts commit 2b0364b232d77505898f169210762f683dae27d5.

That was not the right answer!