Rather than a top level handler to perform this conversion, try to do it with an engine level filter. See [WithFilter](https://github.com/charmbracelet/bubbletea/blob/ab7e5ea8b2aa0183607cb4c85ccdf9d1fa2a5551/options.go#L176).