get rid of newline chars when reading password file