escape_pattern escapes NUL bytes now
add client side ircv3 tags support
remove unused variable