The programming language used has nothing to do with the illegal character problem, and it's not just our programs either, any program will have trouble with characters such as "," & "/" for example because they are used as delimiters and escape characters, they will confuse any program.
The only way to fix this is to remove the illegal characters from tags & file path's.