Stupid i18n Mistake.
Italian, apparently, is full of single quotes. I’m sure they’re not called “single quotes” in Italian, and I’m sure that the Italian people didn’t have exactly my code in mind when they settled upon that convention… That said, my broken code is still obviously their fault.
Note to self: Escape all quotes. At a minimum, do something like:
$title =~ s/\'/\\\'/g;
before writing out strings for use later. Potentially even use correct typography with code like:
$title =~ s/\'/’/g;
depending on context.
— Mike West