The appropriate thing to fix this would be to get the software vendor to abide by the HL7 standard (easier said than done) and use “escape sequences” in their interface.
If you are unaware of escape sequences, they basically symbolize the HL7 delimiters of the message. Of course, the receiving side has to be able to accept them also, or they’ll just appear as the escape sequence, such as “f”, or “t”.