MDL-22390 autolink filter: Handle URLs in brackets better.

But, this breaks URLs like http://en.wikipedia.org/wiki/Slash_(punctuation).

This commit also improves the way the unit tests for this work.