Make filename argument a *const* char pointer