Fix file name encoding problem.

Further notes in the commit comment.