fix locale, filesystem and foreign encoding to utf8