removes obscenities logging improperly