MDL-6122 truncate_userinfo() has to use unicode aware functions