I have a config.ini where section names can contain "]", which leads to parse errors. While proper support for quoting would be best (issue #32) simply matching the last "]" rather than the first helps in this case.