let urlencode_string str =
  AXOJs.Node.window >>> JSOO.call_method "escape" [| JSOO.string str |]
                    >>> JSOO.as_string