A canonical parameterization of paths in $\mathbb{R}^n$