Oops, the test was writing the file as a string instead of bytes