The issue that I am running into is that they have generated the file in such a way that you cannot do pattern matching. The string that taught me this painful lesson was
M>teYESSEX0D\X0A
No way to order your decoding of the escape sequences (if you’re pattern matching) so that this decodes correctly. It’s got to be done by reading the string character-at-a-time and decoding escape sequences as they occur.