Static electrification of filaments