Galois representations connected with hyperbolic curves