Use activesupport not unicode_utils

We had trouble with unicode_utils on windows. By replacing its casefold function with a similar function from activesupport, this problem was resolved. The tests still pass.