TRDR-1: Correct bad read-char behavior where it returns nil (EOF) on first call

for some kinds of input sources.

Signed-off-by: Bronsa <brobronsa@gmail.com>