[[ ScriptOnlyStack ]] Fix memory issue with not copying filename string.