title: HBase KeyValue.getKey() returns extra characters
body: <p>the following hBase code returns some weird characters on the front of my rowKey:</p>
  
  <blockquote>
    <p>"\u0000""\u0014""ei:shrimp:-749…."</p>
  </blockquote>
  
  <p>The prepended weird characters are '\u0000' and '\u0014', and sometimes '\u0016'. I put quotes in the above line to make it readable. There are only two and they're prepended to my rowkey. The key should be 'ei:shrimp:-749...'. Here is the code that I use to get the keys back:</p>
  
  <pre><code>import static org.apache.hadoop.hbase.util.Bytes.toBytes;
  
  List&lt;KeyValue&gt; kvs = result.list();
          String key = null;
          for (KeyValue kv : kvs) {
              String value = Bytes.toString(kv.getValue());
              String qualifier = Bytes.toString(kv.getQualifier());
              if(key == null) {
                  key = Bytes.toString(kv.getKey());
  </code></pre>
  
  <p>Here is the code I used to create my put:</p>
  
  <pre><code>public Put createPut(String columnFamily) {
          StringBuilder sb = new StringBuilder(this.getGroup()).append(':');
          sb.append(this.getKey()).append(':').append(this.getCoordinateHash());
  
          Put p = new Put(toBytes(sb.toString()));
          p = p.add(toBytes(columnFamily), toBytes(COLUMN_VALUE), toBytes(this.getValue()));
  </code></pre>
  
  <p>Any idea what those weird characters are? What am I doing wrong?
  Thank you,
  Rajat</p>