Improved url stripping.