Properly sanitize filenames for uploads

If there are translit characters replace them first.
After that remove all characters that aren't allowed and remove duplicate dashes.

Fixes issues with filenames like: ,,,''"'I am*() a super 'superawesome file+with a super awesome-name“””’xxxx-.jpg