In the spirit of sharing (and since C# is pretty much all my sorry life revolves around, these days ;o) I will start a new series of articles about oddities I've found in the .NET class library. Here's one of my observations, which probably is more of an actual (albeit benign) bug than an idiosyncrasy:

In my experience, the following approach can introduce encoding errors:

AlternativeView htmlAlternateView =
new AlternateView(htmlTempFileName, MediaTypeNames.Text.Html);
This, however, will circumvent the problem:
AlternateView.CreateAlternateViewFromString(File.ReadAllText(htmlTempFileName), Encoding.Default, MediaTypeNames.Text.Html);