Encode unicode arrays for scipy netCDF interface