Use explicit C locale in Misc::StringUtils (Fixes #1216)