do case-insensitive comparison when detecting Content_Types part, tolerate backslashes in part names. see bug 49609