Don't crash on UTF8 errors

https://bitbucket.org/jaraco/irc/issue/34/irc-client-should-not-crash-on-failed

Change-Id: Ifb56ce80a170baf8c36a5fa1a2d0c88ea13885a5