To my knowledge there are no specifications for this. It's left completely to the implementation. Some projects have case-sensitive usernames and some do not. Some provide case-insensitive search and some do not. As a general rule, you'll often avoid issues if you use whatever form was used by the source of the information that you got it from.