Fix issue with uppercase nicks

Fix an issue where a 'this user is not registered' reply for a user with
a nickname containing uppercase characters would not be processed
properly.