Use StringBuilder in XmlEntities and correction converting int to char