small fixes

added some error logging and a filter to remove illegal characters from
composed messages.  HTML tags are no allowed in them.