Fix to_netcdf with 0d sting variables

Fixes #284
fix serialization on Python 3 (use a char array)
Merge pull request #285 from shoyer/fix-serialize-0d

Fix to_netcdf with 0d sting variables