Fix for typo in stripTrailingSlashes