Avoid ASCII encoding errors, inelegantly, by replacing problematic chars