Fixed utf8 issues in user registration