Take a tab name and change invalid characters and squeezing them into a single space character.
The character class
[][:*?/\]
Plus \x5C (backslash or «Reverse Solidus»), \x00 (Null), \x03 (Ctrl-C), and \x27 (Apostrophe)
\x5C
\x00
\x03
\x27