I knew all of that already, and that was not what my question asked or what i needed. It did not mention cp437 at all, which is what my left-hand string needed to be encoded as, as vr pointed out in his correct answer here: https://www.perlmonks.org/?node_id=1220300