replace {} with %s for logging.