use get_route_value

it encapsulates encoding weirdnesses