Fix the reverse router when the URI has a parameter spreading on several segment.

Also fix the path encoding.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>