Added password encoding.