Fix bug #15337 with non-ASCII characters in file names used by ansi