Problem with base64/template

I'm trying to encode an MQTT message into JSON - the payload is a buffer converted to base24 and I'm using a template to add on some extra values but I'm getting an output like this

where the data is obviously not proper base64.

My template looks like this - what am I doing wrong?

I think you need to use 3 curly braces to avoid encoding by the template;

{{{payload}}}

duh - obvious now you've said it :slight_smile:
Thank you :slight_smile: