get uri encode/decode functions mostly working (should be good once tm.str_from_utf8 conversion actually implemented)