fixed charset error in linux.
fixed user register.