Cylinders in Riemann surfaces