Fix encoding issues with StressTest.

Inside mechanize everything must be bytes, not Unicode string.
Submitted programs may, in general, be binary files or incorrectly
encoded files (or files encoded with funny encodings, which is
mostly the same).