URIUtils: fix out of range exception in resolvePath()
URIUtils: cleanup usage of std::string as char in resolvePath()