title: iTextSharp Adding Strange Characters to First Class in CSS File Parsing
body: <p>I am adding a CSS stylesheet to my PDF creation with iTextSharp.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>var css = XMLWorkerHelper.GetCSS(new FileStream(HttpContext.Current.Server.MapPath(linkCss), FileMode.Open));
  cssResolver.AddCss(css);
  </code></pre>
  
  <p>And my CSS is simple like this:</p>
  
  <pre><code>.test-class {
      color: orange;
  }
  </code></pre>
  
  <p>However, when I add this style sheet, it is not being applied. I dug into the <code>CSSFileWrapper</code> private properties while debugging, and noticed the key/value generated for <code>.test-class</code> actually had a key of <code>ï»¿.test-class</code></p>
  
  <p>For whatever reason, the first (and only first) CSS class in the stylesheet has those strange characters at the beginning of the key name. The rest of the styles in the parsed document are correct. Right now, I just added a dummy class at the beginning to account for this, but I feel there is some other underlying issue.</p>
  
  <p>Does anyone know what would cause this?</p>