...
No, that is the code under which they are produced. This is a very odd
problem.
As I suspected

)
I've encountered this problem myself with a document management
application I wrote, I believe it happens for 2 reasons (1 more than the
other I think) ...
1. If the file is already within the clients temporary internet files as a
cached version you'll get a [n] on the end,with the n referring to a
numeric value indicating another duplicate of the same file.
2. When you have more than one . (dot) in the file name it is then unable
to determine the file extension thus it adds some square brackets.
We completely removed this issue in our scenario by removing addition .'s
(dots) from the file names, you could perhaps replace them with
underscores or hyphens if you really need something.
It might not be what you want, but try it - you'll probably find you no
longer get the [ ] once you remove the additions dots..
HTH
Rob