def decode16bit data, length
      data.split('').in_groups_of(4).collect()
      double_octets = data.split('').in_groups_of(4).map(&:join).map{|x| x.to_i(16) }[0, length / 2] # integer values
      double_octets.collect do |o|
        [o].pack('S')
      end.join.force_encoding('utf-16le').encode('utf-8')
    end
def decode16bit data, length
      data.split('').in_groups_of(4).collect()
      double_octets = data.split('').in_groups_of(4).map(&:join).map{|x| x.to_i(16) }[0, length / 2] # integer values
      double_octets.collect do |o|
        [o].pack('S')
      end.join.force_encoding('utf-16le').encode('utf-8')
    end
Decodes 16bit UTF-16 string into UTF-8 string