I'm not quite sure whether it is a bug, but you could use $shortfn() to shorten the length of the file. This will give DOS format of the file extension (C:\Docume~1\Tom\...)