[Godwin, Vivi] Changing encode test scenario to consider unicode text.