Simplify SASL auth string generation code