19751 - Fix and centralize handling of boolean values for settings

In the past boolean values in the config files where parsed in a bespoke
manner by the config class and individual plugins.

This commit adds a str_to_bool method to the util class which gives us
a consistent way of dealing with boolean like strings.