hfs: add sanity check for file name length