Fix bug 876937 - Strip trailing slashes