Fix possible buffer overflow in irc channel name parsing.