XML filename tweaks

This change encodes the XML strings for scenarios involving `&` et al in material file names