gio: Add filename type annotations