Route value substitutions tests + fix encoding