removed use of string.quote("%q", str)