Most jokes come from good intentions—and most mistakes, too.