fix dumping of METADATA_ATTACHMENT2 names, patch by Peter Housel!