Use binmode when reading tempfile