Support unichar ↔ SV when invoking Perl code