title: invalid characters in JSON message after using await/job in play framework 1.2.5
body: <p>I am using play framework 1.2.5 jobs - after await, I send a message to the web UI in JSON format.  The same JSON logic works fine when not using jobs - however, after using jobs and await, the JSON message appears to contain invalid characters (client side javascript does not recognize it as valid JSON anymore).  The browser does not render the garbled/invalid characters - I will try using wireshark and see if I can add more details.   Any ideas on what could be causing this and how best to prevent this?  Thanks in advance (I'm reasonably sure its my code causing the problem since I can't be the first one doing this).  I will also try to test using executors/futures instead of play jobs and see how that goes.</p>
  
  <pre><code>Promise&lt;String&gt; testChk = new TestJobs(testInfo, "validateTest").now(); //TestJobs extends Job&lt;String&gt; &amp; I'm overriding doJobWithResult.  Also, constructor for TestJobs takes two fields (type for testInfo &amp; String)
  String testChkResp = await(testChk);
  renderJSON(new TestMessage("fail", "failure message"));  //TestMessage class has two String fields and is serializable
  </code></pre>
  
  <p><strong>Update</strong>: I am using gson &amp; JDK1.6</p>
  
  <p><strong>Update</strong>  It seems that there is a problem with encoding whenever I use play jobs and renderJSON.</p>
  
  <p><strong>TestMessage: (works when not using jobs)</strong></p>
  
  <p>import java.io.Serializable;</p>
  
  <pre><code>public class TestMessage {
      public String status;
      public String response;
  
      public TestMessage() {
      }
  
      public TestMessage(String status, String response) {
          this.status = status;
          this.response = response;
      }
  }
  </code></pre>
  
  <p><strong>Update:</strong>
  Even using the following results in utf-8 impact when using while relying on jobs.   </p>
  
  <pre><code>RenderJSON("test"); 
  </code></pre>