Might be magic...
Quote from ballofsnow:
You guys need to actually test this stuff. It's not the %, it's the colon. Try renaming a file in windows, as soon as you attempt a ":" it gives an error, so of course you won't be able to output a file like that.
From memory, a "%" sign in windows command line or batch file indicates a variable name. The percent sign may also need to be escaped (by using two percent signs in a row "%%") in some cases.