This will be useful for 0.12dev, when the translations are enabled and the LANG environment variable is set.
But even in 0.11.x, the input itself can contain non-ascii characters (e.g. in the project name), so first apply to 0.11-stable.
Closes #8275.