def split_metadata(data, splitter, name_value_delimiter = '=')
      hash = {}
      data.to_s.split(splitter).each do |pair|
        name, value = pair.split(name_value_delimiter, 2)
        hash[name.strip] = value.strip if name && value
      end
      hash
    end
def split_metadata(data, splitter, name_value_delimiter = '=')
      hash = {}
      data.to_s.split(splitter).each do |pair|
        name, value = pair.split(name_value_delimiter, 2)
        hash[name.strip] = value.strip if name && value
      end
      hash
    end
Splits data on the given splitter character and returns hash.

 === Parameters
 data(String):: raw data
 splitter(String):: splitter character
 name_value_delimiter(String):: name/value delimiter (defaults to '=')

 === Return
 hash(Hash):: hash result