Handle strings returned from Perl 5