encode all to utf-8