Refactoring to allow more control of encoding pattern in transports that have a more specific encoding.