Add a test for to_utf8 component