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