Serialize dataset contents to a string. The serialization creates an in memory netcdf version 3 string using the scipy.io.netcdf package.