Fixes a UnicodeDecodeError when unpacking socket.

I encountered a UnicodeDecodeError when socket data rapidly changed as I
was decoding it. My fix, albeit more of a workaround, was to attempt to
receive the data again when presented with this failure. Still, it's
better than crashing the whole application.