Fix a bug in quoting strings.