Well. I'm not a foilist but I suppose it would rather much work in the same way...
They're both blades that has wiring to be attached in some way. The only thing is that the foils' groove is smaller than that of an épée so it might be trickier to apply the silicone.
So i tried it. its drying now. it looks like its gunna turn out well. I got it in the groove by putting it on my finger and then just stuffing it in the groove, then put the wire in and then just covered the top w/ it. It doesnt act like super glue on your fingers and you can easily wash it off. Now all i have to do is let it dry. its taking a while to dry but i guess thats o.k. if your not on pressed time.
... this is groundbreaking stuff! Armourers are always using established techniques - perhaps you have hit on a simple fix that others can use so please keep us all informed!