I can only guess that this is caused by something in our application blocking something that needs to run in the CE to do that encoding.
Does that part of the encoding run in the script library client side before the postback, or is that supposed to run server side?