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?


Website: http://www.mooktakim.com
email: [email protected]