Fix underscore utility method

makes to_underscore method work as expected.