Fix URL linkifier to not include trailing punctuation

Fixes https://bugs.launchpad.net/irclog2html/+bug/1155906