encode URL components to better support unicode form codes.

include handling of old routes for better experience when using
previous version's URL scheme.