Patch for windows IO.read problem