limit size of filename to avoid crashes with very long fileNames