Fix read file encoding for node 0.8.x