Issue #20501: fileinput module no longer reads whole file into memory when using
fileinput.hook_encoded.