Check if file exists and remove invalid chars

Regex works!
Merge pull request #39 from NathanBastiaans/patch-4

Check if file exists and remove invalid chars