title: Read XML file with BOM in Powershell
body: <p>Powershell seems to be barfing on an xml file with a unicode BOM - the code: </p>
  
  <pre><code>$xml = [xml]{ get-content $filename }
  </code></pre>
  
  <p>blows up with 'Data at the root level is invalid'. </p>
  
  <p>Is there an easy way to do this without fiddling around with the contents of the file?</p>