Set Content-MD5 only if ETag has correct format

Previously this check was more lenient than it should have been.