add urlencode to support special characters in routes