Adding some fixes to io.dart

R=tapted@chromium.org

Review URL: https://codereview.appspot.com/48940043