nsCAutoString str; str.AssignWithConversion(aURI);
nsCAutoString str; str.Assign(NS_ConvertUCS2toUTF8(aURI));
static nsresult CheckLoadURI(nsIURI *aBaseURI, const nsString& aURI, nsIURI **aAbsURI){  // XXX URL escape?  nsCAutoString str; str.AssignWithConversion(aURI);  *aAbsURI = nsnull;  nsresult rv;  rv = MakeURI(str,aBaseURI,aAbsURI);  if (NS_SUCCEEDED(rv)) {    NS_WITH_SERVICE(nsIScriptSecurityManager,                    securityManager,                     NS_SCRIPTSECURITYMANAGER_PROGID,                    &rv);    if (NS_SUCCEEDED(rv)) {      rv= securityManager->CheckLoadURI(aBaseURI,                                         *aAbsURI,                                         PR_TRUE);    }  }  if (NS_FAILED(rv)) {    NS_IF_RELEASE(*aAbsURI);  }