Use Net::HTTP's implementation to encode Authorization header