sanitize filename to support space in file name