Fix encode to utf-8.