[TASK] Remove tidy requirement and reduce footprint

Simplifies the formatting of generated XML for label translations and writes the result to disk directly to save memory.