Percent-encodes for URLs (spaces become +). (standard Liquid filter.)
{{ "hello world" | url_encode }}
Output:
hello+world