urlencode

The urlencode attribute converts the value of a field to a URL-encoded version. e.g. changing spaces into %20.

<perch:content id="title" type="text" label="Title" urlencode="true" />