Module:URI Encode with slashes

local p = {}

p.uriencode = function(frame) return mw.ustring.gsub(mw.uri.encode(frame.args[1], "PATH"), "%%2F", "/") end

return p