filtering special chars from post slug

Found the answer I was looking for:

<?php

    // Cleans special characters out of the slug, if the slug hasn't been set yet
    add_filter('name_save_pre', 'clean_slugs', 0);

?>