Network.NetRc is not one of the many (most?) programs that accept quotes in the password column so that the passwords can have spaces in them.
Unfortunately, some services issue passphrases that contain spaces (and passphrases are becoming a more common way to generate passwords, as they are easier to remember), and it isn't up to the user to change them.
More info: https://stackoverflow.com/questions/12674888/can-netrc-handle-passphrases-with-spaces