Replace incorrect uses of raw_convert with a new locale_convert.