Fix fopen mode.

"rb" instead of "r" to avoid platform differences