Properly sanitize filenames for uploaded files. If there are translit characters replace them first.
After that remove all characters that aren't allowed.

Fixes issues with filenames like: ,,,''"'I am*() a super 'superawesome file+with a super awesome-name“””’xxxx-.jpg