ampersand fix for xml-ish documents