Character sums and double cosets