Hi Adam!
For string manipulation, the proper encoding hasĀ to be considered. It's better to use the providedĀ [#:guess-encoding=#f] [#:encoding=#f] as well.
You may take a look at call-with-input-file in document:
BTW, in your case, you can ignore the binary mode.
Best regards.