irc.py: fix bugs in input/output parsing
irc.py: fix bugs in input/output parsing

- ensure that formatted input/output is bytes
- fix tag separator

grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks,grawity/hacks