Replace all non-ASCII bytes with "?" in case of broken UTF-8.

why the variable n?