Fixed nmi_taskname generation to handle backslashes