Ensure that sample IDs don't contain weird chars

This ensures that the file names created don't contain them either.