escape some stuff, delete empty files