Fix unicode issue for ticket 0000877