fixed encoding issues revealed by upgrading to Digest::SHA v5.74