handle artifact response encoding correctly