Trailing slashes repair