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