Removed the final validation step in the URL constructor, as the final url can be different from the input due to normalization.
Ensured that path in URL is at least a '/'.