only escape # and ? in filenames, leave everything else as it is.