ToSnake converts a CamelCase string to snake_case.
It inserts underscores at word boundaries and handles acronyms.
Insert underscore before the last uppercase letter in a sequence when followed by a lowercase letter.
For example, "HTTPSUrl" becomes "https_url".