title: Java - Apache Beam: Read file from GCS with "UCS2-LE BOM" encoding
body: <p>I want to read a file in UCS2-LE BOM using TextIO, however It doesn't seem to work. 
  Is there a way to use TextIO with this encoding ? Or is there another library that does well with this type of encoding ?</p>
  
  <p>My code is in JAVA (Apache Beam)</p>
  
  <pre><code>PCollection&lt;KV&lt;String, String&gt;&gt; csvElements =
              pipeline.apply("Reads the input csv file", TextIO
                      .read()
                      .from(options.getPolledFile()))
                      .apply("Read File", ParDo.of(new DoFn&lt;String, KV&lt;String,String&gt;&gt;(){
                          @ProcessElement
                          public void processElement(ProcessContext c) throws UnsupportedEncodingException {
                              String element = c.element();
  
                              String elStr = new String(element.getBytes(),"UTF-16LE");
                              c.output(elStr);}}));
  </code></pre>