Decoding error receiving messages

I wonder if the issue is caused by getting incomplete outputs from the IRC server. I’m not quite sure.
I’ll show a output of raw lines in UTF-32 when joining a channel:

error: ‘utf-32-le’ codec can’t decode bytes in position 0-3: code point not in range(0x110000)
error: ‘utf-32-le’ codec can’t decode bytes in position 0-3: code point not in range(0x110000)
error: ‘utf-32-le’ codec can’t decode bytes in position 0-3: code point not in range(0x110000)
error: ‘utf-32-le’ codec can’t decode bytes in position 0-3: code point not in range(0x110000)
error: ‘utf-32-le’ codec can’t decode bytes in position 0-3: code point not in range(0x110000)

Here’s UTF-8 of the same channel join:

:tmi.twitch.tv 001 sato_chat :Welcome, GLHF!
:tmi.twitch.tv 002 sato_chat :Your host is tmi.twitch.tv
:tmi.twitch.tv 003 sato_chat :This server is rather new
:tmi.twitch.tv 004 sato_chat :-
:tmi.twitch.tv 375 sato_chat :-
:tmi.twitch.tv 372 sato_chat :You are in a maze of twisty passages, all alike.
:tmi.twitch.tv 376 sato_chat :>
:tmi.twitch.tv CAP * ACK :twitch.tv/membership
:tmi.twitch.tv CAP * ACK :twitch.tv/tags
:tmi.twitch.tv CAP * ACK :twitch.tv/commands
:sato_chat!sato_chat@sato_chat.tmi.twitch.tv JOIN #dansgaming
@badges=;color=;display-name=sato_chat;emote-sets=0;mod=0;subscriber=0;user-type= :tmi.twitch.tv USERSTATE #dansgaming
@broadcaster-lang=;emote-only=0;followers-only=20;r9k=0;room-id=7236692;slow=5;subs-only=0 :tmi.twitch.tv ROOMSTATE #dansgaming
:sato_chat.tmi.twitch.tv 353 sato_chat = #dansgaming :ghentbot gibbed 9steven ascothero miturner moobot fur3x dansgaming analyticsbot
:sato_chat.tmi.twitch.tv 353 sato_chat = #dansgaming :sato_chat
:sato_chat.tmi.twitch.tv 366 sato_ch