to_utf8 test: fix Utf8Encoder constructor