Add utf8 test

The test is based on the original by Karen Etheridge <ether@cpan.org>