cli: Support UTF-8 file name.

Patch by nu774.