Handle 'char out of range' errors