code: public static String encode(Byte[] in) {
  		byte[] tmp = new byte[in.length];
  		for(int i = 0; i < tmp.length; i++) {
  			tmp[i] = in[i];
  		}
  		return encode(tmp);
  	}
docs: Encode a Byte array and return the encoded string.
  
  @param in A string to encode.
  @return The encoded byte array.