Fix truncated filenames