Encode fields in UTF-8 to support non-ascii values

Ticket:	#4178