BUG in file content length needed to use bytes not chars. Buffer.byteLength is the fix