Switch toutf8 to encode