convert protocol to string