fixes #13 on 5.20: don't rely on SV's content being discarded

automatically by a perl-xs caller. The bug caused external perl data
to be modified in place; duplicate_string now