Proper handling of file names with special characters