raw_password may be passed as a unicode or string

Ticket:	#5593