The openPMD_api source code seems to assume that HDF5 cannot store empty strings. I just tried, and both empty string attributes as well as attributes that are arrays of strings (some empty) work fine. I suggest to lift this restriction (unless there is another reason) and to allow empty strings as attributes.