File name truncation done before conversion to HTML entities.