Decode values before passing to handleRoute
Add spec tests