better truncate filenames