bugfix translate: encoding errors