Fixed character set issue during registration