Can we use `chomp` rather than `chop` in case the file does not have a trailing newline?