Characters and Automorphism Groups of Compact Riemann Surfaces