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);

?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)