You should try to fix the original problem, FFFD ( Unicode character replacement character ) is in most cases not a real text character, but a sign that something was trying to decode in UTF encoding, but something was not actually encoded in UTF encoding. This is an alternative to silently discarding invalid bytes or completely stopping the decoding process, in any case, if you see this, an error has occurred.
There is no way to find out what the original character is. Especially with your decision, since you are replacing the _ character, you may not even know that the original source was incorrectly decoded. You must go back to the source and decode it correctly.
Note. It is possible that the source text uses as a literal, an ordinary character, for example, when it talks about it, and then there is no error. I exclude this possibility in my answer.
source share