make sure the etag header is a correct md5 string

previously the etag header was being saved as
“[object Object]” as the md5 wasn’t outputted as a
string.