change tolower and isspace to use classic locale