Fix UTF8 handling in pango-text.c

Change-Id: Ie408110d9a0e43b02554a2102e297b9468929901