fix ts build and sasl signature in ascii protocol
call sasl auth only if binary mode is used