Added URI encoder. 

Fixed URI encoding bug in PathImplementation.resolve().