Add testcase for utf-8 strings

Signed-off-by: Michal Čihař <michal@cihar.com>