Avoid URI parsing

Inspired by https://github.com/josh/rack-ssl/pull/34.

Thanks to @rafaelfranca to advise me this improvement.