Alter 'symbolize_keys' function to fix the 'RuntimeError: can't add a new key
into hash during iteration' error.