How to dotify a ruby hash (to be able to more easily convert it to a java like dot notated config file)