change from HttpEntity.mapDataBytes to HttpEntity.transformDataBytes taking a standard transformer