Refs #4281 - use utf only if supported

We check LANG ENV variable to see whether we can use utf characters.