Do not crash if IRC server sends invalid UTF-8 byte sequence
Refactor reading IRC messages