I'm on Ubuntu and my client is on Windows, we both get the same behavior: correct output in english, error with chinese characters.
I assume the characters are utf-8 since my basex setup is all utf-8. I query a db for the product name and then use that to build the file name to use in the file:write.
When I file:list a folder that has files with Chinese characters, the characters get replaced by ���.