Convergence rates for function classes with applications to the empirical characteristic function