Handle unicode conversion error in IRC backend.

For non unicode data in irc backend, handle UnicodeEncodeError.