Escaping characters when printing out XML