Extracted Sasl Plain auth string.

Pulled the construction of the auth string for Sasl Plain into its own
function that way users who wish to have a custom auth string can simply
write over that function.