[BEAM-1713] Variables are not written to NetCDF4 if they contain illegal character