in swift/Sources/TeaFileForm/Client.swift [29:37]
func percentEncode() -> String {
let unreserved = "*-._"
let allowedCharacterSet = NSMutableCharacterSet.alphanumeric()
allowedCharacterSet.addCharacters(in: unreserved)
allowedCharacterSet.addCharacters(in: " ")
var encoded = addingPercentEncoding(withAllowedCharacters: allowedCharacterSet as CharacterSet)
encoded = encoded?.replacingOccurrences(of: " ", with: "%20")
return encoded ?? ""
}