The original Grimm version of this tale speaks of a man who promises the king that if his daughter isn’t able to weave straw into gold he will kill her. The girl makes a deal with an imp that if he weaves the straw into gold she will give him her first born. He does it, but the girl won’t give it up. The imp agrees to let go of the deal if she can guess his name. After some snooping, the girl catches him singing his name, so the next day she comes over and tells him that she knows it. After she tells him, he loses is damn mind and tears his own body in half in front of her.