Remove illegal chars from filename. Fix #16