Check if file exists and remove invalid chars

Regex works!