make sure double quotes in input are replaced by single quotes