fixed TTextWriter.AddXmlEscape() according to <a href=http://www.w3.org/TR/xml/#NT-Char>official XML specifications</a>
- see ticket [a77b51e5deaacd2]