My wife's sewing machine emitted the magic smoke with a nice bang. Spotting the culprit wasn't exactly hard. Quite impressive, split open underneath too. Fixed it with a salvaged X2 0.1μF part.
Warning: Be aware that X & Y safety rated capacitors operate at mains voltage. These caps are designed to fail open for safety.