Handle errors in string and char-set lexing.
check for IO errors in symbol lexing.