Unescaped section headers should be valid values

```ini
[section]
var=[value]
```

Here `[value]` should be a valid value and not another section header. This PR ensures we only scan for section headers at the beginning of a line.