Fixed crash in url's with spaces, or other characters that need encoding.