Replace all non-ASCII bytes with "?" in case of broken UTF-8.
Merge pull request #330 from anders/invalid-utf8

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