Trim trailing slashes for aesthetics.