Fix to trim Windows style newlines

Windows style newlines `\r\n` will be removed. (Password may contain spaces)