Fix URI parser

The default URI parser on ruby 2.2 conforms rfc3986
ref https://github.com/rack/rack/commit/f467f1b8c21127473b9e6277608d06f9e81e101e