Encode proxy for all auth types.