Resolve inconsistent results when invoking LOWER() in C vs. UTF8 locale databases