Remove trailing backslash from DOS paths in GetDisplayNameOf.