handle spaces and slashes in log file names, update #2051