title: Insert PubSub messages into BigQuery through Google Cloud Dataflow
body: <p>I would like to insert PubSub messages data coming from a topic into a BigQuery table using Google Cloud Dataflow. 
  Everything works great but in the BigQuery table I can see unreadable strings like " ߈���".
  This is my pipeline:</p>
  
  <pre><code>p.apply(PubsubIO.Read.named("ReadFromPubsub").topic("projects/project-name/topics/topic-name"))
  .apply(ParDo.named("Transformation").of(new StringToRowConverter()))
  .apply(BigQueryIO.Write.named("Write into BigQuery").to("project-name:dataset-name.table")
       .withSchema(schema)
       .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED))
  </code></pre>
  
  <p>and my simple StringToRowConverter function is:</p>
  
  <pre><code>class StringToRowConverter extends DoFn&lt;String, TableRow&gt; {
  private static final long serialVersionUID = 0;
  
  @Override
  public void processElement(ProcessContext c) {
      for (String word : c.element().split(",")) {
        if (!word.isEmpty()) {
            System.out.println(word);
          c.output(new TableRow().set("data", word));
        }
      }
  }
  }
  </code></pre>
  
  <p>And this is the message I sent through a POST request:</p>
  
  <pre><code>POST https://pubsub.googleapis.com/v1/projects/project-name/topics/topic-name:publish
  {
   "messages": [
    {
     "attributes":{
  "key": "tablet, smartphone, desktop",
  "value": "eng"
     },
     "data": "34gf5ert"
    }
   ]
  }
  </code></pre>
  
  <p>What am I missing? 
  Thank you!</p>