if (charset) { MIME_ConvertString(charset, "UTF-8", name, &returnVal); return returnVal; }
mime_decode_filename(char *name){	char *s = name, *d = name;	char *cvt, *returnVal = NULL;  	while (*s)	{		/* Remove backslashes when they are used to escape special characters. */		if ((*s == '\\') &&			((*(s+1) == CR) || (*(s+1) == LF) || (*(s+1) == '"') || (*(s+1) == '\\')))			s++; /* take whatever char follows the backslash */		if (*s)			*d++ = *s++;	}	*d = 0;	returnVal = name;	    cvt = MIME_DecodeMimePartIIStr(returnVal, 0, PR_TRUE);    if (cvt && cvt != returnVal) {      returnVal = cvt;    }	return returnVal;}