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