Fix some const string warnings

Found with -Wwrite-strings and -Wcast-qual.