Encode username and password in UTF-8 before passing through

Ticket:	#4079