Currently, it uses nc_put_att_text, which means that the resulting attributes are always saved as bytes in the underlying HDF5 files. This works OK as long as you only read netCDF4 files back with ...