v8 has a special case if you try to use a javascript object as a class with a fixed size structure, or as a hashtable with thousands of members. both of them perform reasonably well
at least with a language like zig which does that, the whole stdlib specifies and only accepts UTF-8 aside from windows functions which need UTF-16 (which isnt stored as byte arrays anyway, so its clearly incompatible)