(master) squashed down the string replacement stuff after file selection and fixed the question mark issue from non escaped question marks