nevermind, asking the question gave me the answer....
# suitescript
k
nevermind, asking the question gave me the answer. I think it's just
encodeURI(uri)