Fixes #396 Link detection

Fixes problem with URLs and bbcode.

Internal thread: http://community.mybb.com/thread-153373.html