addingPercentEncoding(withAllowedCharacters:)
Returns a new string created by replacing all characters in the string not in the specified set with percent encoded characters.
Declaration
func addingPercentEncoding(withAllowedCharacters allowedCharacters: CharacterSet) -> String?