Add utf8 encoding tests