Optimize checking for which characters to encode in a URI

R=lrn@google.com

BUG=

Review URL: https://codereview.chromium.org//11644068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@16595 260f80e4-7a28-3924-810f-c04153c831b5
Reapply change to enable a couple of tests that were not run because they were named incorrectly.

R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11744017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@16596 260f80e4-7a28-3924-810f-c04153c831b5
Properly initialize eventhandler mask for all handles on Windows.

The change to make writes to stdout/stderr async exposed this
issue.

R=sgjesse@google.com
BUG=

Review URL: https://codereview.chromium.org//11741015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@16601 260f80e4-7a28-3924-810f-c04153c831b5