Constify char * arguments in various API functions

This commit constifies some char * arguments to the jl_* APIs. It closes issue #9408