Replace all instances of '%s' with %q