Fix improper CTCP parsing

The trailing \001 character at the end of incoming CTCP messages was leaking through to the browser in actions, as well as an extra space displayed between the nick and the action.