Improved external url handling in the HTML helper