Constify char * arguments in various API functions