null terminate after filename