Fix for character encoding

(eg when source code contains '&' fails the xml parsing)