Parse URL the proper way.