Add unit test for haxe.Utf8

See [Issue #1975](https://github.com/HaxeFoundation/haxe/issues/1975).