Escape wget URLs correctly