Fixed invalid URL parsing