Update DynamicHtmlWriter.cs

Fix attribute name rewriting to support "class" and underscores.
Merge pull request #1 from MGramolini/patch-1

Update DynamicHtmlWriter.cs