title: Netty - Best way to transmit strings with line breaks?
body: <p>I am working on a protocol that uses a DelimiterBasedFrameDecoder for decoding, that splits the bytebuf whenever a line break is received.</p>
  
  <p>Unfortunately, there must be the possibility to transmit strings with line breaks. By now the line breaks in the strings are read by the decoder and frames are created accordingly. </p>
  
  <p>My idea is to encode those strings with Base64 and decode them after the framedecoder has done its work. My question is now, is there a better solution to this problem? Base64 brings overhead as well as additional encoding/decoding work.</p>
  
  <p>Using another delimiter is not possible because i need it for the header fields of my protocol.</p>