Handle readToEnd cases where the input is 0-length
0.3.1