utils: rewrite
utils: add uri encode/decode