Fix accidental modification of const char * pointer in upcase_name