Convert a string to a snake case.