Make sure the hash is regex friendly