Changing assets filename via editor api

Hello, I am trying to change assets names with editor api so all the special characters are removed. For now I have code like this:

let formattedName = item.get("name").replace(/[^a-zA-Z0-9_]/g, '')

This looks fine in editor, however after export the names still contains special characters. Is there a way to set also filename of assets after export via api?