Text this: Investigation into the feasibility of an electro-optic rail surface monitor