Add length encoding to protocol buffers using a Stream Transform