Fixed #21627 -- Non-ASCII characters from changepassword command

Fixed a crash when executing changepassword command when the user object
representation contained non-ASCII characters.