Normalise rest path prefix.