Fix UTF-8 character corruption every 32kb of text buffer
256 colour support for irssi by Nei, based on original patch by shabble (https://github.com/shabble/irssi/tree/256-colour)