Also handle UnicodeDecodeError for malformed messages.