OS independent filename handling