MT#7803 Fix UTF8 handling in invoice generation