In the document, encodeFileName is described as "The function takes a string and returns a bytes array (Uint8Array or Array)", but in .d.ts file, it's declared as encodeFileName?(filename: string): string;, and cannot use code from the doc.
I'm confused now...How can I encode file name correctly? Thanks.