Ensure that we use a UTF8 locale for strftime in [convert-date] tag.
Otherwise it causes a crash with "Malformed UTF-8 character".
Encode contents of html attribute properly if email body is empty.