encode checkstyle messages