rv = mDocument->GetElementsForID(NS_ConvertASCIItoUCS2(uri), aElements);
rv = mDocument->GetElementsForID(NS_ConvertUTF8toUCS2(uri), aElements);
nsXULTemplateBuilder::GetElementsForResource(nsIRDFResource* aResource, nsISupportsArray* aElements){    nsresult rv;    const char *uri;    rv = aResource->GetValueConst(&uri);    NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get resource URI");    if (NS_FAILED(rv)) return rv;    rv = mDocument->GetElementsForID(NS_ConvertASCIItoUCS2(uri), aElements);    NS_ASSERTION(NS_SUCCEEDED(rv), "unable to retrieve elements from resource");    if (NS_FAILED(rv)) return rv;    return NS_OK;}