read in a file character by character - replace any unknown ASCII characters with spa

Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/

Thanks!

Okay - if you tell us what an 'unknown ASCII' character is so we can write some code.