Properly serialise collected raw data.