#625918 mingw-w64-dev: variable-width encoding -> basename() truncates filenames