Today's grinning Jack-o-lanterns are a rewrite of a far bleaker Irish custom in which faces were carved into turnips to ward off evil spirits.