@since: bbPress (r5364)
Description
bbp_sanitize_slug()

Sanitize permalink slugs when saving the settings page.

Source: bp-forums/admin/functions.php:150