Bug fix on PLAIN auth encode