[CORE] fixed another encoding bug