Escape wget's URLs correctly