Check file name length as well.