get rid of newline chars when reading password file
Merge pull request #6240 from fesplugas/devel

get rid of newline chars when reading password file