Error when trying to write an attribute string using XmlWriter - C#