const nsString& spec,
const nsAReadableString& spec,
NS_NewURI(nsIURI* *result,           const nsString& spec,           nsIURI* baseURI = nsnull,          nsIIOService* ioService = nsnull)     // pass in nsIIOService to optimize callers{    char* specStr = spec.ToNewUTF8String(); // this forces a single byte char*    if (specStr == nsnull)        return NS_ERROR_OUT_OF_MEMORY;    nsresult rv = NS_NewURI(result, specStr, baseURI, ioService);    nsMemory::Free(specStr);    return rv;}