fix: digest breaks if xml has utf8 chars

I added a test to verify that it was breaking