title: XmlSerializer change encoding
body: <p>I am using this code to <code>Serialize</code> XML to <code>String</code>:</p>
  
  <pre><code>XmlWriterSettings xmlWriterSettings = new XmlWriterSettings
  {
      indent = true,
      Encoding = Encoding.UTF8
  };
  
  using (var sw = new StringWriter())
  {
      using (XmlWriter xmlWriter = XmlWriter.Create(sw, xmlWriterSettings))
      {
          XmlSerializer xmlSerializer = new XmlSerializer(moviesObject.GetType(), new XmlRootAttribute("category"));
          xmlSerializer.Serialize(xmlWriter, moviesObject);
      }
      return sw.ToString();
  }
  </code></pre>
  
  <p>The problem is that i get :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;category xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" havemore="no"&gt;
    &lt;items&gt;
      &lt;movie&gt;
        &lt;videoid&gt;videoid1&lt;/videoid&gt;
        &lt;title&gt;title1&lt;/title&gt;
      &lt;/movie&gt;
    &lt;/items&gt;
  &lt;/category&gt;
  </code></pre>
  
  <p>There is any way to change the <code>&lt;?xml version="1.0" encoding="utf-16"?&gt;</code> 
  to 
  <code>&lt;?xml version="1.0" encoding="utf-8"?&gt;</code> ?</p>