build under utf8 locale to avoid encode errors