Fix invalid xml formed in case the filename is made of reserved xml characters (ampersand for entities for instance) PR: 30817