I've tried to add sqlite3_win32_mbcs_to_utf8 code before add_one_file().
But I'm stupid, it can not work by my direty patch.

But, the result seems have some effect.

<verbatim>
add .
ADDED  閮望???txt

ci
d:\fossil.exe: missing file: 閮望???txt
d:\fossil.exe: aborting due to prior errors
</verbatim>