Hi Danielo
You need to URL encode the tag name, and then apply CSS escaping rules; there's a good discussion here:
The rules basically boil down to preceding each of these characters with a backslash: !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \, ], ^, `, {, |, }, and ~.
There are some docs at the bottom of this tiddler:
Here's a quick JS function that will apply both rules:
(function(s) {return "tc-tagged-"+encodeURIComponent(s).replace(/[!"#$%&'()*+,\-./:;<=>?@[\\\]^`{\|}~,]/mg,function(c){return "\\" + c;});})("Put your tag here")
It's quite useful, so I've included it in the core for 5.1.0 here:
Best wishes
Jeremy.