Fix handling filenames in XML with leading or trailing spaces (SF-193).