A stable bacterial peroxidase with novel halogenating activity and an autocatalytically linked heme prosthetic group