Bug fix on PLAIN auth encode

The right string to encode for PLAIN authentication is `"\0" ++ user ++ "\0" ++ pass` and not `user ++ "\0" ++ user ++ "\0" ++ pass`.

And some HLint!