fixed bug in file serving: filenames with spaces