Now trims filename if it is longer than 150 characters.