GitHub - lemonde/utf8-binary-cutter: A small node.js lib to truncate UTF-8 strings to a given binary size. Useful when dealing with old systems handling UTF-8 as ascii/latin-1, for ex. MySQL or Oracle database
Decoding non-utf8 data as utf8 should throw an Error · Issue #5650 · nodejs/node-v0.x-archive · GitHub