There is a missing space between `foreach` and `{`.

Also, we typically use the infix notation when we use the brace-notation. So it should ideally be `isoControlChars foreach { c =>`. The same applies to the other `foreach` a few lines below (but not to `filterNot`).