convert filename to str