File: define version and format as std::strings not char arrays

Otherwise we save them as char arrays also in the h5 file.