src: uniq: fixed handling of newlines