I'm looking for a way to sanitize the filename of user uploaded attachments.

I thought that wordpress already did it but I faced preblems after an user uploaded an attachment containing a '°' . That way the attachment is not downloadable.

I found out this wp function:

```
sanitize_file_name($filename)

```

is there a way to use it inside the

```
add_attachment

```

action?

thanks