Fix metadata structure, sending a file to the iRODS server