Fix generate_etag