Fixed problem in ResumeSessionImpl where the number of UTF-8 bytes was incorrect.  Also added "charset=utf-8" to the content-type header.