make Non-ASCII compile messages visible

When environment variable LANG is set (for example, ja_JP.UTF-8), non-ASCII characters in a compile message are not processed correctly. This patch fixes the bug.