How do i strip unknown characters

I have a string like this: JE File� I'm not sure you can see that, the last character is a question mark for me.

What i would like to do is get rid of this character. Or make it display. How can i strip unrecognised characters from a string?