Updated for encoding support in irc library.