Fix the reader to scan valid characters