Earlier quoted context omitted.
A 50k LOC program serving a critical business function without a test suite or requirements documentation can be quite a chore to replace, especially if you let it go until you have neither staff experienced in the language or with experience with the background of the specific application.
I've converted such programs from one language to another. It is not necessary to understand how the program works, only how the language works. What you do is function by function, convert the language by duplicating what it does in the new language. Resist any and all urges to fix it, refactor it, improve it, etc. Just translate.
unless you're an expert and knows the language inside out, it's hard to even know such a problem occurred.