cmFileCommand: Fix compile warnings.
Merge topic 'file-strings-encoding' into next

8c308e7e cmFileCommand: Fix compile warnings.