Handling question marks in scan file names