Switched conversion routines to use the HDF5 C API.