Use istringstream for deserializing config options in order to use the correct locale. #2187