logging, encoding