Add maxlen property to configfile, fix getting key values for settings with " or '