! util: make testing agnostic to native newline characters, fixes #632