title: Escape characters (0x1b/27) in binary packages don't get sent through Wi-Fi and corrupt message during transmission
body: <p>I am developing on an embedded system (STM32F4) and I tried to send some data to a simple Windows Forms client program on the PC side. When I used a character based string format everything was working fine but when I changed to a binary package to increase performance I run into an problem with Escape characters.</p>
  
  <p>I'm using nanopb to implement Googles Protocol Buffer for transmission and I observed that in 5% of package I'm receiving exceptions in my client program telling me that my packages are corrupted.</p>
  
  <p>I debugged in WireShark and saw that in this corrupted package the size was 2-4 bytes smaller than the original package size. Upon further inspecting I found out that the corrupted packages always included the binary value 27 and other packages never included this value. I searched for it and saw that this value represents an escape character and that this might lead to problems.</p>
  
  <p>The technical document of the Wi-Fi module I'm using (Gainspan GSM2100) mentions that commands are preceded by an escape character so I think I need to get rid of this values in my package.</p>
  
  <p>I couldn't find a solution to my problem so I would appreciate if somebody more experienced could led me to the right approach to solve this problem.</p>