handle trampled keys when converting dot notation to hash