Manage non ASCII characters for basic functions such as basename.