allow localisation to be saved to git

`str()` can fail because we may be given Unicode content like `Zoë`