added filename validation, now replace slashes with underscores