Mono.Xml.XmlTextWriter.ArgumentOutOfRangeError C# (CSharp) Method