When encrypting passwords, dont generate newlines

/cc @fryguy here you go

I had thought there was another method to avoid newlines, but this seemed the safest route.