Fix UTFInputStream for EOF.