Filename handling on client