err if filename is too long