return retval;
CopyUTF16toUTF8(aStr, aOut); return NS_OK;
nsFormSubmission::EncodeVal(const nsAString& aStr){  char* retval;  if (mEncoder) {    retval = UnicodeToNewBytes(PromiseFlatString(aStr).get(), aStr.Length(),                               mEncoder);  } else {    retval = ToNewCString(aStr);  }  return retval;}