URI encode before passing to URI object to deal with pathological URIs
Merge pull request #67 from tilthouse/uri-parsing

URI encode before passing to URI object to deal with pathological URIs