encode user first to utf8