lib/preauth.js: strip unnecessary newline