 
 PRIVATE>
 
-: url-encode ( str -- str )
+: url-encode ( str -- encoded )
     [
         [ dup url-quotable? [ , ] [ push-utf8 ] if ] each
     ] "" make ;

        [ letter? ]
        [ LETTER? ]
        [ digit? ]
        [ "/_-." member? ]
    } 1|| ; foldable

<PRIVATE


PRIVATE>

: url-decode ( str -- decoded )
    [ 0 swap url-decode-iter ] "" make utf8 decode ;

<PRIVATE
