Fix bug for server register failure. Fix method is to make the password binary-safe.