Apply shell quoting to infile/outfile. #536