Update DynamicHtmlWriter.cs

Fix attribute name rewriting to support "class" and underscores.