The test with accents on characters in the zone name was failing. (Invalid UTF-8 passed to g_io_channel_write_chars().) Switched to storing the zone name in UTF-8.