use g_fopen() to avoid i18n errors with file paths/names