Java binding: add UTF8 to Latin1 conversion