Bugfix for sanitizing filenames