It's tempting to say that we don't need to exclude filename chars from symbols, but we might regret that decision down the road. Better to just escape them. Fixes https://gitlab.com/kicad/code/kicad/issues/8694
The only exception to this is the SPICE simulator's use of component when referring to physical component (R, L, C, etc.) values.