Fixed issues with fetching URLs with spaces in them.