various log and content conversion fixes