BUG: fix behavior of write_values() with empty string in scipy.io.netcdf

fixes #1592
Merge pull request #3313 from andreas-h/gh1592

BUG: io/netcdf: fix behavior of write_values() with empty string in scipy.io.netcdf