Simplified check for control characters in input reader