replace '%s' with %q