Use const char* instead of char* where necessary.