level1: fix bug where hasher ignored trailing newline