Actually, let's use urlparse for this.