Revert stripTrailingSlash change. Closes #2215