function RemoveBackslash(const S: String): String;
Returns the specified string with any trailing slashes/backslashes removed.
Use of this function is discouraged; use RemoveBackslashUnlessRoot instead when working with file system paths.