WL#901: Optimize get_charset_by_name() and get_charset_by_csname()

Affects: Server-7.1   —   Status: Un-Assigned   —   Priority: Medium

monty: you should change functions like get_charset_by_csname to have a length
for character/coallation set names and not assume they are null terminated