Add full UTF-8 support to Perl example