[mod] add urlencode/urldecode and unit test