fix: specify encoding when calling bytes
[APE-1186]
#2529
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention