Convert a non-snake-case string to a snake-case string.