Twitch IRC Encoding

I was wondering what form of Encoding twitch uses for it’s chat. Because I’ve been trying to use UTF8 but sometimes it suddenly breaks and causes my bot to disconnect from the servers all together.

Would be quite helpful if someone could tell me their exact encoding format.