Returns a string with percent-encoded reserved characters, including spaces.

The reserved characters in the original string are replaced with their
percent-escaped representation (`%xx`). Letters, digits, and the characters
`.-_` are not escaped.

## Arguments

| Arguments ||
|---|---|
| `source` | `string` The string that will be converted. |

## Returns

A percent-encoded copy of the `source` string.

## Raised exceptions

| Exceptions ||
|---|---|
| `TypeError` | If `source` is not a string. |

## Examples

```yaml
# Return string with percent-encoded reserved characters
# Returns "a%2Fb%2Fc%3Fitem%3Dd%2Be%20f"
- returnStep:
    return: ${text.url_encode("a/b/c?item=d+e f")}
```