As a preface just to be honest, this is so strange and unexpected that I almost can't believe it myself, and I just downloaded and installed the latest version of the plugin ("SafeChars plugin v1.5.7 loaded."). So, since this is really quite simple, the complete listing of a very short batch file which illustrates the problem:
and the output of the above batch file:
I somehow doubt that I have to give any significant information as to what exactly is wrong. I do have a "workaround" for now, but I consider it to be "dangerous" because it makes some assumptions about the input data and that is something I try to avoid if at all possible.
@Echo Off SetLocal UnSafe /E:, >NUL: Set RandomInformation=2011-07-21 And Other Stuff... @Echo Without SafeExp: "%RandomInformation" @Echo With SafeExp:"%@SafeExp[%RandomInformation]" UnSafe /Z >NUL: EndLocal Quit 0
Without SafeExp: "2011-07-21 And Other Stuff..." With SafeExp:"-07-21 And Other Stuff..."