Add exception handling on URI parse, so the goliath app won't go die when there's invalid uri (in our case it contains []).
Removed the escape behavior, it will breaks digest based authentication. Just trigger a bad request exception in this case.
Change the way to throw exception.
Merge pull request #1 from Tin/patches

Add exception handling to URI.parse