Improved URL validation.