fixed segfaulting on huge filenames