Catch UnicodeError.
Fixed handling of the message attribute.