Fix crash when trying to use Utf8Encoder after initialisation