Factor exception wrapped read() into nextChar().