fix bug where unicode was not marked correctly.

The bug caused an exception when Email settings were incorrect,
ironically when raise_on_failure=False.