Fixed object uri methods to return uri encoded uris.

Fixed object uri methods to work with objects that have names needing to be uri encoded.