Unicode-safe handling of paths during wallet import/export