update code to send the correct amount of bytes as a prefix in each frame. This is needed to properly handle unicode content