Kohana has a built in slugify function that generates url friendly title slugs:
```php
URL::title('My Title') = 'my-title';
```