Convert 'string' to a numpy object dtype with h5py style metadata