class Hashie::Hash

def to_hash

Converts a mash back to a hash (with stringified keys)
def to_hash
  out = {}
  keys.each do |k|
    out[k] = Hashie::Hash === self[k] ? self[k].to_hash : self[k]
  end
  out
end