s3: Move a talloc_strdup out of the main code path