Replace "HANDLES_OPEN" with "FLAGS_NONE" to avoid dumb GLib assertions