More robust read implementation in FileWrapper