Normalize the URI on the way in.

Fix #2.
Merge pull request #5 from phuu/relative-norm

Normalize the URI on the way in.