added filename sanitizing