Fixing bug with filenames (special characters)