Force external encoding to utf-8 if possible