Handle non-ASCII directories better in Mac OS’s bash and Terminal.app.