URL parsing smarts

Is there a way to make URL parsing smart enough to chop off trailing punctuation marks?

I mean, if I post something like this:

"See my website at http://www.netcom.com/~rogermw."

… the period and the closing double-quote marks are included in the URL, which makes it a bad link. Similarly:

(See my website at http://www.netcom.com/~rogermw)

… includes the closing parenthesis as part of the URL, which also screws up the link.

Just put in a {url} and {/url} around the hyperlink (replace { and } with the square brackets, [ and ]).