Pass a StringRef to sys::identifyFileType.