Thermal head for perforating stencil