Set UTF8 flag when creating the string rather than after