Hi,

I am using below payload for PutBucketLogging api and getting MalformedXML error in response. I have checked it with real AWS and it is working perfectly fine. Am I missing something or this needs a fix in localstack?

`"LoggingEnabled": {
            "TargetBucket": "test_bucket_name",
            "TargetPrefix": "log",
            "TargetGrants": [
                {
                    "Grantee": {
                        "URI": "http://acs.amazonaws.com/groups/s3/LogDelivery",
                        "Type": "Group",
                    },
                    "Permission": "WRITE",
                },
                {
                    "Grantee": {
                        "URI": "http://acs.amazonaws.com/groups/s3/LogDelivery",
                        "Type": "Group",
                    },
                    "Permission": "READ_ACP",
                },
            ],
        }
 `
# mimi
        # http
        policy = {
            "Id": "test-s3-bucket-access",
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Sid": "AllowSSLRequestsOnly",
                    "Action": "s3:*",
                    "Effect": "Deny",
                    "Resource": [f"arn:aws:s3:::{s3_bucket}", f"arn:aws:s3:::{s3_bucket}/*"],
                    "Condition": {"Bool": {"aws:SecureTransport": "false"}},
                    "Principal": "*",
                }
            ],
        }
        aws_client.s3.put_bucket_policy(Bucket=s3_bucket, Policy=json.dumps(policy))
        # put 
        content = b"test-content"
        aws_client.s3.put_(Bucket=s3_bucket, Key="test/123", Body=content)
        result = aws_client.s3.get_(Bucket=s3_bucket, Key="test/123")
        received_content = result["Body"].read()
        assert received_content == content
        # enab
        monkeypatch.setattr(s3_constants, "ENABLE_MOTO_BUCKET_POLICY_ENFORCEMENT", True)
        with pytest.raises(ClientError) as exc:
            aws_client.s3.get_(Bucket=s3_bucket, Key="test/123")
        assert exc.value.response["Error"]["Code"] == "403"
        assert exc.value.response["Error"]["Message"] == "Forbidden"
def _anon_client(service: str):