Removes hand rolled url parsing in favor of parse_url. /facepalm