Ensuring the output will be printable ascii

Some students put strange non-printable characters in their files. This
helps ensure that it will just be printable ascii.