Is it ok for a plugin to have a dependency on eclrtl?  There are members in the supplied context to allocate data.

However if it is available it will make the utf8->latin1 conversion easier.