bugfix translate: text encoding