Wrap around the readEvents method as it changed between releases.
Avoid a null character at the beginning of the temporary file.