public static string CreateModuleName(string readerName) { if (readerName.IndexOfAny(Path.InvalidPathChars) > -1) { return EncodeModuleName(readerName); } return Path.GetFileNameWithoutExtension(Path.GetFileName(readerName)); }