cache_file: use unicode on windows

This enables the MinGW Windows crap wrapper for fopen().