Make sure all paths are handled in UTF8 instead of unicode

Ticket:	#4481