fix bug where unicode was not marked correctly.

The bug caused an exception when Email settings were incorrect,
ironically when raise_on_failure=False.
fix some styles in html.

The main issue was the missing space before the attribute. The
rest is just for less important general improvement of the
formatting.
Merge pull request #119 from bobbydavid/rdm-bugfixes

Fix bugs in HTML styles and in unicode