Fix for urlparse() discrepancy