Truncate filenames based on their utf-8 length