Use g_fopen(). (#168341, Daniel Atallah)