force encoding to utf-8 for external