Adding MalformedURLException protection for Windows.