Thermostable and acid-tolerant DNA-binding protein