Set LC_CTYPE if not already defined to make tr happy on OSX.