Fix reading a Techne file from an InputStream.