Improves LoggingUtils.format() method to quote items. Fixes #850