Backporting filename in runtime error messages to 1.11

Shouln't this be `const char *` ?

It's not like someone is allowed to alter it along the way, right?